using System;
using System.Runtime.Serialization;

namespace Phoenix.Exceptions
{
    [Serializable]
    public class ViewModelDeactivationFailedException : Exception
    {
        public ViewModelDeactivationFailedException(string viewModelName, Exception exception) :
            base(string.Format("Failed to deactivate viewmodel {0}", viewModelName), exception)
        {

        }

#if !WINDOWS_PHONE
        protected ViewModelDeactivationFailedException(SerializationInfo info, StreamingContext context) : base(info, context)
        {
        }
#endif
    }
}